<template>
    <div>

        <div class="container">
            <div class="nav">
                <div>
                    <a href="javascript:;" @click="$router.back()"></a>
                </div>
                <div>
                    <span>投诉成功</span>
                </div>
                <div>
                    <i>&nbsp;&nbsp;&nbsp;&nbsp;</i>
                </div>
            </div>
            <div class="content">
                <div class="correct">
                    <i></i>
                </div>
                <h3>投诉提交成功</h3>
                <p>将尽快交与厂商处理，请至个人中心关注处理进展</p>
                <div class="btn">
                    <router-link tag="div" class="again" to="/plaintCon">继续投诉</router-link>
                    <router-link to="/" tag="div" class="home">返回首页</router-link>
                </div>
            </div>
            <div class="footer">
                <p>您的投诉建议</p>
                <p>Copyright©2019 汽车消费网 315che.com</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    created() {
        this.$emit("car-show", false);
    }
}
</script>

<style lang="scss" scoped>
.nav {
    height: 44px;
    background-color: #2070e0;
    display: flex;
    align-items: center;

    &>div {
        &:nth-child(1) {
            text-align: left;
            flex: 1;
        }

        &:nth-child(2) {
            text-align: center;
            flex: 1;
        }

        &:nth-child(3) {
            text-align: right;
            flex: 1;
        }
    }

    div {
        a {
            display: block;
            width: 40px;
            height: 40px;
            background-image: url("../assets/img/icons1.png");
            background-position: -82px -32px;
            background-size: 400px auto;
        }

        span {
            color: #fff;
            font-size: 18px;
        }

        i {
            width: 15px;
            height: 18px;
            background-image: url("../assets/img/m-icons.png");
            background-position: -211px 0px;
            background-size: 300px auto;
            margin-right: 15px;
        }
    }
}

.content{
    padding: 40px 25px;
    .correct{
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background-color: #2070e0;
        position: relative;
        margin: 0 auto 30px auto;
        i{
            display: block;
            position: absolute;
            top: 30%;
            right: 24%;
            width: 54px;
            height: 38px;
            background-image: url('../assets/img/m-icons.png');
            background-size: 300px;
            background-position:-58px -85px ;
        }
    }
    h3{
        font-size: 18px;
        color: #333;
        text-align: center;
        font-weight: 700;
        margin-bottom: 18px;
    }
    p{
        font-size: 14px;
        color: #999;
        text-align: center;
        margin-bottom: 44px;
    }
    .btn{
        height: 105px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        div{
            height: 43px;
            border: 1px solid;
            border-radius: 22px;
            text-align: center;
            line-height: 43px;
            border-color: #2070e0;
            font-size: 18px;
        }
        .again{
            background-color: #2070e0;
            color:#fff;
        }
        .home{
            background-color: #fff;
            color: #2070e0;
        }
    }
}

.footer {
    height: 44px;
    padding: 25px 20px;
    padding-bottom: 75px;

    p {
        color: #333;
        font-size: 14px;
        text-align: center;

        &:first-of-type {
            padding-bottom: 10px;

            &::before {
                display: inline-block;
                width: 18px;
                height: 14px;
                content: "";
                background-image: url("../assets/img/m-icons.png");
                background-position: -601px 0px;
                background-size: 230px auto;
                margin-right: 3px;
            }
        }
    }
}
</style>